<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "iliketry.member_score".
 *
 * @property integer $member_no
 * @property integer $score
 * @property string $xm
 * @property integer $addtime
 * @property integer $is_all
 * @property integer $type
 */
class MemberScore extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'iliketry.member_score';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['member_no', 'score', 'addtime', 'is_all', 'type'], 'integer'],
            [['xm'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id'=>'id',
            'member_no' => 'Member No',
            'score' => '积分',
            'xm' => '项目',
            'addtime' => 'Addtime',
            'is_all' => '是否是上月结余记录0否，1是',
            'type' => 'Type',
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\MemberScoreQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\MemberScoreQuery(get_called_class());
    }
}
